package com.bjsxy.user;
/**通过反射获取构造方法、接口、*/
public class Users {
    private String name;
    private int age;
    public Users(){

    }

    public Users(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Users(String name) {
        this.name = name;
    }
    //注意这里是private
    private Users(int age){
        this.age=age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
